package com.gxuwz.lhleavesys.service;

import java.util.List;

import com.gxuwz.lhleavesys.entity.Course;

public interface CourseService {
    /**
     * 查询 BY ID
     * 
     * @param courseID
     * @return
     */
    Course getCourseByCourseID(String courseID);

    /**
     * 查詢所有
     * 
     * @return
     */
    List<Course> getAllCourses();

    /**
     * 新增
     * 
     * @param course
     * @return
     */
    boolean addCourse(Course course);

    /**
     * 修改
     * 
     * @param course
     * @return
     */
    boolean updateCourse(Course course);

    /**
     * 删除 BY ID
     * 
     * @param courseID
     * @return
     */
    boolean deleteCourse(String courseID);

    boolean findCourseBycourseID(String courseID);

    boolean findCourseByCourseName(String courseName);

    List<Course> getQueryAllCourses(String courseID, String courseName, String term);

}
